package com.llyb.tingshu.album.client.impl;


import com.llyb.tingshu.album.client.CategoryFeignClient;
import com.llyb.tingshu.common.result.Result;
import com.llyb.tingshu.model.album.BaseCategory3;
import com.llyb.tingshu.model.album.BaseCategoryView;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Slf4j
public class CategoryDegradeFeignClient implements CategoryFeignClient {


    /**
     * 根据三级分类id查询分类
     *
     * @param category3Id
     * @return
     */
    @Override
    public Result<BaseCategoryView> getCategoryView(Long category3Id) {
        log.error("CategoryDegradeFeignClient: 根据三级分类id获取信息失败");
        return null;
    }

    /**
     * 根据一级分类id获取所有的分类信息
     *
     * @param category1Id
     * @return
     */
    @Override
    public Result<List<BaseCategory3>> findTopBaseCategory3(Long category1Id) {
        log.error("CategoryDegradeFeignClient: 根据一级分类id获取所有分类信息失败");
        return null;
    }
}
